Skip to main content

bottom

Type

property

Summary

Specifies how far an object's bottom edge is from the top of the window or screen.

Syntax

set the bottom of <object> to <number>

Description

Use the bottom property to change the vertical placement of a control or window.

The bottom of a stack is in absolute (screen) coordinates. The bottom of a card is always equal to the height of the stack window; setting the bottom of a card does not cause a script error, but it has no effect. The bottom of a group or control is in relative (window) coordinates.

Changing the bottom of an object shifts it to the new position without resizing it. To change an object's height, set its height or rectangle property.

The height property of an object is equal to its bottom minus its top.

Examples

if the bottom of this stack &gt; 600 then changeStackPlacement
set the bottom of card field 1 to the height of this stack

command: group

glossary: object, property, relative coordinates, absolute coordinates, stack window, error, negative

keyword: card, integer, top, rectangle, control

object: stack

property: pixels, rectangle, bottomMargin, bottomRight, bottomLeft, height, top

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?